/*
 * NewGoodsContract.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.newgoods;

import com.yidiandao.business.base.BasePresenter;
import com.yidiandao.business.base.BaseView;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.recyclertype.DoubleGoods;
import com.yidiandao.business.interfaces.LoadMoreListener;
import com.yidiandao.business.interfaces.RefreshLayoutStateListener;
import com.yidiandao.business.interfaces.RefreshListener;

import java.util.List;

/** 首页-新品-契约类 */
public class NewGoodsContract {

    interface Presenter extends BasePresenter {

        void loadNewGoodsList(boolean isRefreshing);

        void changeStyle(boolean isGridStyle);
    }

    interface View
            extends BaseView<Presenter>,
            RefreshLayoutStateListener,
            RefreshListener,
            LoadMoreListener {

        void setGoodsList(List<Goods> goodsList);

        void setGoodsGrid(List<DoubleGoods> goodsGridList);
    }
}
